package edu.yctc.weblog.enums;

import java.util.List;

import com.google.common.collect.ImmutableList;

/**
 * 
 * @className TagDeleteStatus
 * @description 标签删除状态枚举
 * @author zyj
 * @date 2020年6月15日
 *
 */
public class TagDeleteStatus {

    /** 软删除 */
    public static final int DELETED = 1;
    /** 未删除, 默认态 */
    public static final int UNDELETED = 2;

    public static final List<Integer> ALL_STATUS = ImmutableList.of(DELETED, UNDELETED);

    public static boolean isLegal(int status) {
        for (Integer integer : ALL_STATUS) {
            if (integer == status) {
                return true;
            }
        }
        return false;
    }

}
